package com.nowcoder.community.a_entity;


import java.util.Date;

/**
 * <p>——————————————————————————————————————————————-————
 * <p>   【当前类】Comment
 * <p>
 * <p>   【谁调用我】是个pojo....
 * <p>
 * <p>   【调用我干什么】
 * <p>——————————————————————————————————————————————-————
 */
public class Comment {
    private int id;//帖子id（下面是comment_id评论id！）
    private int userId;//当前帖子所有者


    //有用的
    private int entityType;//【可以删了】1级、2级回复（其实用targetId就足够，这个不用）

    private int entityId;//【最核心！】1级回复贴子行的commentid

    private int targetId;//0为-1级回复（不用），132具体-为2级回复给userid


    private String content;//对应行内容
    private Date createTime;//对应行创建时间
    private int status;//0必有效






    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getEntityType() {
        return entityType;
    }

    public void setEntityType(int entityType) {
        this.entityType = entityType;
    }

    public int getEntityId() {
        return entityId;
    }

    public void setEntityId(int entityId) {
        this.entityId = entityId;
    }

    public int getTargetId() {
        return targetId;
    }

    public void setTargetId(int targetId) {
        this.targetId = targetId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", userId=" + userId +
                ", entityType=" + entityType +
                ", entityId=" + entityId +
                ", targetId=" + targetId +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                ", status=" + status +
                '}';
    }
}
